package com.sugar.real.estate.module.business.service.userfollow;

import com.sugar.real.estate.framework.common.pojo.PageResult;
import com.sugar.real.estate.module.business.controller.admin.userfollow.vo.UserFollowPageReqVO;
import com.sugar.real.estate.module.business.controller.admin.userfollow.vo.UserFollowRespVO;
import com.sugar.real.estate.module.business.controller.app.userfollow.vo.AppUserFollowPageReqVO;
import com.sugar.real.estate.module.business.controller.app.userfollow.vo.AppUserFollowSaveReqVO;
import com.sugar.real.estate.module.business.dal.dataobject.userfollow.UserFollowDO;

import javax.validation.Valid;
import java.util.List;

/**
 * 用户关注 Service 接口
 *
 * @author Ysugar
 */
public interface UserFollowService {

    /**
     * 删除用户关注
     *
     * @param id 编号
     */
    void deleteUserFollow(Long id);

    /**
    * 批量删除用户关注
    *
    * @param ids 编号
    */
    void deleteUserFollowListByIds(List<Long> ids);

    /**
     * 获得用户关注
     *
     * @param id 编号
     * @return 用户关注
     */
    UserFollowDO getUserFollow(Long id);

    /**
     * 获得用户关注分页
     *
     * @param pageReqVO 分页查询
     * @return 用户关注分页
     */
    PageResult<UserFollowRespVO> getUserFollowPage(UserFollowPageReqVO pageReqVO);

    void createUserFollow(@Valid AppUserFollowSaveReqVO createReqVO, Long userId);

    PageResult<?> appGetUserFollowPage(@Valid AppUserFollowPageReqVO pageReqVO, Long userId);
}